package top.yueyazhui.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class YueUser {

    @TableId(type = IdType.AUTO, value = "id")
    private Long id;
    private String name;
    private Integer age;
    private String email;
    @TableField(fill = FieldFill.INSERT, value = "created_time")
    private Date createdTime;
    @TableField(fill = FieldFill.UPDATE, value = "updated_time")
    private Date updatedTime;
    @Version
    private Integer version;
    @TableLogic
    private Integer deleted;
}
